Skip to content

Fix possible truncation of particle optical properties values#491

Merged
slayoo merged 1 commit intomainfrom
fix_optical_props
Apr 25, 2026
Merged

Fix possible truncation of particle optical properties values#491
slayoo merged 1 commit intomainfrom
fix_optical_props

Conversation

@jcurtis2
Copy link
Copy Markdown
Member

Fixes #469. Particle optical properties were returning a scalar value when the fortran code was fetching and returning an array. Typically this of size 1 so it wasn't noticeable.

All 5 calls for particle properties now return a std::valarray of the correct type (either real or complex) using the templates for arrays. Tests were expanded to operate to handle the possibility of multiple wavelengths.

@jcurtis2 jcurtis2 self-assigned this Apr 24, 2026
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.88%. Comparing base (9c70fe7) to head (f3aa46e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #491      +/-   ##
==========================================
- Coverage   91.92%   91.88%   -0.04%     
==========================================
  Files          56       56              
  Lines        2564     2552      -12     
  Branches      144      144              
==========================================
- Hits         2357     2345      -12     
  Misses        132      132              
  Partials       75       75              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread tests/test_aero_particle.py
@slayoo slayoo enabled auto-merge April 25, 2026 10:05
@slayoo slayoo added this pull request to the merge queue Apr 25, 2026
Merged via the queue into main with commit 95434d8 Apr 25, 2026
34 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test vector AeroParticle optical properties (pending MOSAIC support)

3 participants